package cn.dubito.demo.controller;

import cn.dubito.demo.config.NeoProperties;
import cn.dubito.demo.domain.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liliang
 * @description:
 * @datetime 18/2/24 下午12:59
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String index() {
        return new NeoProperties().getAuthor();
    }

    @RequestMapping("/getUser")
    public User getUser() {
        User user = new User();
        user.setEmail("sdfsdfsdf");
        return user;
    }
}
